package client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import parm.PageParam;
import utils.R;

@FeignClient("order-service")
public interface OrderClient {

    @PostMapping("/order/admin/list")
    R adminList(@RequestBody PageParam pageParam);

    @PostMapping("/order/admin/check")
    R check(@RequestBody Integer productId);

}
